package com.inspectionwork.model;

import com.baomidou.mybatisplus.annotation.TableName;
import com.inspectionwork.common.base.BasisEntity;

import java.util.Date;

/**
 * @Author: YangYu
 * @ClassName: Comment
 * @Date: Created in 11:07 2022/6/23
 * @Description: 评论
 */
@TableName("comment")
public class Comment extends BasisEntity {

    /**
     * 主键
     */
    private String id;

    /**
     * 知识id
     */
    private String knowledgeId;
    /**
     * 用户名称
     */
    private String userName;
    /**
     * 评论内容
     */
    private String content;
    /**
     * 评论时间
     */
    private Date time;

    public String getId() {
        return this.getString("id");
    }

    public void setId(String id) {
        this.put("id",id);
    }

    public String getKnowledgeId() {
        return this.getString("knowledgeId");
    }

    public void setKnowledgeId(String knowledgeId) {
        this.put("knowledgeId",knowledgeId);
    }

    public String getUserName() {
        return this.getString("userName");
    }

    public void setUserName(String userName) {
        this.put("userName",userName);
    }

    public String getContent() {
        return this.getString("content");
    }

    public void setContent(String content) {
        this.put("content",content);
    }

    public Date getTime() {
        return this.getDate("time");
    }

    public void setTime(Date time) {
        this.put("time",time);
    }
}
